import React from 'react';
import { View, Text } from 'react-native';

const SongItem = ({ song, onPress }) => {
  return (
    <View style={styles.container} onPress={onPress}>
      <Text>{song.title}</Text>
      <Text>{song.artist}</Text>
      <Text>{song.duration}</Text>
    </View>
  );
};

export default SongItem;